package com.health.userbackstage.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Author ASUS
 * @Date 2023/8/21 20:43
 * @Version 1.0
 */
@Data
@TableName("order")
public class Order {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("member_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long memberId;
    @TableField("orderdate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd")
    private Date orderDate;
    @TableField("order_type")
    private String orderType;
    private String orderStatus;
    @TableField("setmeal_id")
    private Integer setMealId;
    @Version
    private Integer version;
    private Integer deleted;

    @TableField(exist = false)
    private Integer currentPage;
    @TableField(exist = false)
    private Integer pageSize;
    @TableField(exist = false)
    private Integer total;
    @TableField(exist = false)
    private String queryString;
    @TableField(exist = false)
    private Date queryDate;
//    @TableField(exist = false)
//    private SetMeal setMeal;
//    @TableField(exist = false)
//    private Member member;
    @TableField(exist = false)
    private String setMealName;
    @TableField(exist = false)
    private String memberName;
    @TableField(exist = false)
    private Integer orderSettingVersion;
}
